<%@page import="mindmap.UserStory"%><%@page import="java.io.PrintWriter"%><%@ page contentType="text/html;charset=UTF-8" %><%@ page import="java.sql.*" %><%@ page import="java.sql.DriverManager" %><%@ page import="java.sql.ResultSet" %><% 

mindmap.ObjectDB db = new mindmap.ObjectDB();
try{
	db.initialiseConnexion();
	mindmap.UserStory myUs = new UserStory(db,
		request.getParameter("id"),
		request.getParameter("name"),
		request.getParameter("description"),
		request.getParameter("comment"),
		request.getParameter("business_value"),
		request.getParameter("fk_epic_id")
	);
	if(myUs.editDB()){
		out.print("La userstory a bien été enregistrée");
	}
	db.closeConnexion();
	
}catch(Exception e){
	response.setStatus(507,e.getMessage());	
}
%>
